"""
通用序列
"""
#定义字符串
# str1 = "11faewgf11"
# print(str1)
#索引
# print(len(str1))
# print(str1[6]) #g
# print(str1[-4]) #g
#切片
# print(str1[3:])
# print(str1[2:6])
# print(str1[-7:-2])
# print(str1[-7:-2:2])

#定义列表
# list1 = [1,2,3,4,5]
# print(list1)

#相加、相乘、内置函数
str2 = "111222abc"
str3 = "222333"
# print(str2 + str3)
# print(str2 * 3)
# print(len(str3))
# print(min(str2))
# print(str2.index("a"))
# print(str2.count("2"))
list2 = [1,1,1,2,2,2]
list3 = [2,2,2,3,3,3]
# print(list2 * 3)
# print(list2 + list3)
# print(len(list3))
# print(max(list3))
print(list2.index(2))
print(list2.count(2))